<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 16-11-27
 * Time: 上午12:30
 */
namespace app\wateradmin\model;

use app\common\model\BaseGoods;
use think\Db;
class ShopGoods extends BaseGoods {

    public function getGoodsList($condition, $field = '*', $order = '', $limit = 15, $page = 1){
        return Db::name('shop_goods')->field($field)->where($condition)->order($order)->page($page,$limit)->select();
    }

    public function getGoodsOnlineList($condition, $field = '*', $limit = 15, $page = 1, $order = 'goods_id desc'){
        return Db::name('shop_goods')->field($field)->where($condition)->order($order)->page($page,$limit)->select();
    }



//goods表

//id
//store_id
//seller_id
//supplier_id
//goods_name
//category_id
//goods_price
//goods_marketprice
//goods_serial
//goods_storage_alarm
//goods_click
//goods_salenum
//goods_collect
//goods_spec
//goods_storage
//goods_image
//goods_shipping
//goods_state
//goods_verify
//goods_addtime
//goods_edittime
//evaluation_count
//is_active



//goodscommon表

//goods_commonid
//goods_name
//goods_jingle
//gc_id
//gc_id_1
//gc_id_2
//gc_id_3
//gc_name
//store_id
//store_name
//spec_name
//spec_value
//brand_id
//brand_name
//type_id
//goods_image
//goods_attr
//goods_body
//mobile_body
//goods_state
//goods_stateremark
//goods_verify
//goods_verifyremark
//goods_lock
//goods_addtime
//goods_selltime
//goods_specname
//goods_price
//goods_marketprice
//goods_costprice
//goods_discount
//goods_serial
//goods_storage_alarm
//transport_id
//transport_title
//goods_commend
//goods_freight
//goods_vat
//areaid_1
//areaid_2
//goods_stcids
//plateid_top
//plateid_bottom
//is_virtual
//virtual_indate
//virtual_limit
//virtual_invalid_refund
//is_fcode
//is_appoint
//appoint_satedate
//is_presell
//presell_deliverdate
//is_own_shop


//goodsimage表

//goods_image_id
//goods_commonid
//store_id
//color_id
//goods_image
//goods_image_sort
//is_default

}